/**
 * @projectName study_java
 * @package Builder
 * @className Builder.Test
 */
package Builder;

/**
 * Test
 * @description 测试类
 * @author answer_wx
 * @date 2022/6/28 10:28
 * @version 1.0
 */
public class Test {
    public static void main(String[] args) {
        Director director = new Director();
        ConcreteBuilder1 concreteBuilder1 = new ConcreteBuilder1();
        ConcreteBuilder2 concreteBuilder2 = new ConcreteBuilder2();
        director.construct(concreteBuilder1);
        Product product1 = concreteBuilder1.showProduct();
        product1.show();
        director.construct(concreteBuilder2);
        Product product2 = concreteBuilder2.showProduct();
        product2.show();
    }
}